package com.xys.auth.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {
    private String id;

    private String email;

    private String username;

    private String password;

    private String phoneNum;

    private Integer status;

    private Role role;

    private List<Role> roles;

    private String statusStr;

    public String getStatusStr(){
        if (status == 1){
            return "开启";
        }else{
            return "未开启";
        }
    }
}
